//
//  CommentsCell.m
//  InSuger
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 Dior_3g. All rights reserved.
//

#import "CommentsCell.h"

@implementation CommentsCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createData];
    }
    return self;
}



- (void)createData
{
    self.avatar_url = [[UIImageView alloc] init];
    [self.contentView addSubview:self.avatar_url];
//    self.avatar_url.backgroundColor = [UIColor redColor];
    
    self.content = [[UILabel alloc] init];
    [self.contentView addSubview:self.content];
//    self.content.backgroundColor = [UIColor greenColor];
    
    self.nickname = [[UILabel alloc] init];
    [self.contentView addSubview:self.nickname];
//    self.nickname.backgroundColor = [UIColor yellowColor];
    
//    @weakify(self);
//    [self addColorChangedBlock:^{
//        @strongify(self);
//        self.contentView.nightBackgroundColor = UIColorFromRGB(0x343434);
//        self.contentView.normalBackgroundColor = [UIColor whiteColor];
//  
//    }];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.avatar_url.frame = CGRectMake(WIDTH / 35, HEIGHT / 35, WIDTH / 10, HEIGHT / 35);

}










- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
